added some security checks

Signed-off-by: NurPech <nurpech@nurpech.de>