get caps from user, and some bugfixing

Signed-off-by: Alexander Skjolden <alex@plastboks.net>